package com.companyname.projecttemplate.job;

import org.springframework.stereotype.Component;

import com.base.core.context.mvc.LogRequestIdConfig;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;

import lombok.extern.slf4j.Slf4j;

/**
 * @author start
 */
@Slf4j
@Component
public class JobTask{

	@XxlJob("textjob")
	public ReturnT<String> textjob() {
		LogRequestIdConfig.initMdcRequestId();
    	String command = XxlJobHelper.getJobParam();
    	log.info("textjob:{}",command);
        return ReturnT.SUCCESS;
	}

}
